import request from '@/utils/request'

// 查询sportsmanPhysicalQuality列表
export function listSportsmanPhysicalQuality(query) {
    return request({
        url: '/training/sportsmanPhysicalQuality/list',
        method: 'get',
        params: query
    })
}

// 查询赛事姓名集合
export function listSportsmanName() {
    return request({
        url: '/training/sportsmanPhysicalQuality/queryNameList',
        method: 'get',
    })
}

// 查询sportsmanPhysicalQuality详细
export function getSportsmanPhysicalQuality(id) {
    return request({
        url: '/training/sportsmanPhysicalQuality/' + id,
        method: 'get'
    })
}

// 新增sportsmanPhysicalQuality
export function addSportsmanPhysicalQuality(data) {
    return request({
        url: '/training/sportsmanPhysicalQuality',
        method: 'post',
        data: data
    })
}

// 修改sportsmanPhysicalQuality
export function updateSportsmanPhysicalQuality(data) {
    return request({
        url: '/training/sportsmanPhysicalQuality',
        method: 'put',
        data: data
    })
}

// 删除sportsmanPhysicalQuality
export function delSportsmanPhysicalQuality(id) {
    return request({
        url: '/training/sportsmanPhysicalQuality/' + id,
        method: 'delete'
    })
}

// 导出sportsmanPhysicalQuality
export function exportSportsmanPhysicalQuality(query) {
    return request({
        url: '/training/sportsmanPhysicalQuality/export',
        method: 'get',
        params: query
    })
}